package com.linln.admin.welfare.validator;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author wcy
 * @date 2020/03/14
 */
@Data
public class WelfareValid implements Serializable {
//    @NotEmpty(message = "编号不能为空")
//    private String code;
//    @NotEmpty(message = "户口所在地不能为空")
//    private String account;
    @NotEmpty(message = "姓名不能为空")
    private String name;
    @NotEmpty(message = "目的地不能为空")
    private String area;
    @NotEmpty(message = "学号不能为空")
    private String number;
//    @NotEmpty(message = "婚姻状况不能为空")
//    private String gam;
//    @Pattern(regexp = "[0-9]{4}-[0-9]{2}-[0-9]{2}", message = "日期格式不对")
//    @DateTimeFormat(pattern="yyyy-MM-dd")
//    private Date startDate;
//    @Pattern(regexp = "[0-9]{4}-[0-9]{2}-[0-9]{2}", message = "日期格式不对")
//    @DateTimeFormat(pattern="yyyy-MM-dd")
//    private Date endDate;
}